<?php
	global $_W,$_GPC;	
	if($_W['role']){
		$sql = "SELECT * FROM ".tablename('mii_ang_setting')." s LEFT JOIN ".tablename('mii_ang_info')." o ON s.uniacid = o.uniacid WHERE s.uniacid = :uniacid ";
		$settings = pdo_fetch($sql,array(':uniacid'=>$_W['uniacid']));
		$maps =  array('lat'=>$settings['Blat'],'lng'=>$settings['Blng']);
		$openid = json_decode($settings['openid'],true);
		$admin_phone = json_decode($settings['admin_phone'],true);
		if(!empty($openid)){
			$openid = implode('||', $openid);
		}else{
			$openid = '';
		}
		if(!empty($admin_phone)){
			$admin_phone = implode('||', $admin_phone);
		}else{
			$admin_phone = '';
		}
		if($settings['mpinfo']){
			$mpinfo = json_decode($settings['mpinfo'],true);
		}
		if($settings['pics']){
			$pics = explode(',', $settings['pics']);
		}
		if(!empty($settings['tenkey'])){
			include $this->template('web/setinfo');	
		}else{
			message('请填写参数设置 腾讯地图秘钥(KEY)');
		}				
	}else{
		message('没有操作的权限！');
	}

?>